from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as ec
from selenium.webdriver.support.wait import WebDriverWait

wd = webdriver.Chrome()
wd.get("https://cn.bing.com/")
try:
    ele = WebDriverWait(wd, 10).until(ec.title_is("必应"))
    print(type(ele))
    print(ele)
    print(wd.title)
except Exception as e:
    raise e
finally:
    wd.quit()
